import $axios from './index.js'

// 模型列表
function list(data) {
  const url = '/form/index'
  return $axios.get(url, data)
}

function add(data) {
  const url = '/form/add'
  return $axios.post(url, data)
}

function formInfo(data) {
  const url = '/form/info'
  return $axios.get(url, data)
}

function edit(data) {
  const url = '/form/edit'
  return $axios.post(url, data)
}

function del(data) {
  const url = '/form/del'
  return $axios.get(url, data)
}

function deploy(data) {
  const url = '/form/deploy'
  return $axios.get(url, data)
}

function undeploy(data) {
  const url = '/form/undeploy'
  return $axios.get(url, data)
}

function detail(data) {
  const url = '/form/detail'
  return $axios.get(url, data)
}

function quesDetail(data) {
  const url = '/form/quesDetail'
  return $axios.get(url, data)
}

export default {
  list,
  formInfo,
  add,
  edit,
  del,
  deploy,
  undeploy,
  detail,
  quesDetail
}
